

//
//  ZYResourceSSSSCell.m
//  优学荟管理系统
//
//  Created by edz on 2017/11/8.
//  Copyright © 2017年 星道三好. All rights reserved.
//

#import "ZYResourceSSSSCell.h"
#import "ZYResourceSSSSModel.h"
@implementation ZYResourceSSSSCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self.contentView addSubview:self.couseLabel];
        [self.contentView addSubview:self.rmbLabel];
        [self.contentView addSubview:self.lineLabel];
    }
    
    
    
    return self;
    
    
}



- (void)assignByZYResourceSSSSModel:(ZYResourceSSSSModel *)model{
    
    self.couseLabel.text =[NSString stringWithFormat:@"%@",model.createTime];
    self.rmbLabel.text = [NSString stringWithFormat:@"%.2f",[model.money doubleValue]];
    
    
    
}


- (UILabel *)couseLabel{
    
    if (_couseLabel == nil) {
        self.couseLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 15, kScreenWidth/2, 20)];
        self.couseLabel.textColor = ColorRGB(102, 102, 102);
        self.couseLabel.font = [UIFont systemFontOfSize:15];
        self.couseLabel.text = @"sssss";
        self.couseLabel.textAlignment = NSTextAlignmentCenter;
    }
    
    return _couseLabel;
    
    
}


- (UILabel *)rmbLabel{
    if (_rmbLabel == nil) {
        self.rmbLabel = [[UILabel alloc]initWithFrame:CGRectMake(self.couseLabel.frame.origin.x + self.couseLabel.frame.size.width, self.couseLabel.frame.origin.y, self.couseLabel.frame.size.width,self.couseLabel.frame.size.height)];
        self.rmbLabel.textColor = ColorRGB(102, 102, 102);
        self.rmbLabel.font = [UIFont systemFontOfSize:15];
        self.rmbLabel.textAlignment = NSTextAlignmentCenter;
        self.rmbLabel.text = @"dddd";
    }
    
    return _rmbLabel;
    
    
}

- (UILabel *)lineLabel{
    if (_lineLabel == nil) {
        self.lineLabel = [[UILabel alloc]initWithFrame:CGRectMake(0,49,kScreenWidth,1)];
        self.lineLabel.backgroundColor = ColorRGB(245 ,245,245);
  
    }
    
    return _lineLabel;
    
    
}



@end
